import type {RouteRecordRaw} from "vue-router";
const Login = () => import("@/views/login/index.vue");
const Home = () => import("@/views/home/index.vue");
const Error = () => import("@/views/error/index.vue");

export const basicRouter: RouteRecordRaw[] = [
    {
        path: "/login",
        name: "login",
        component: Login,
        meta: {
            title: "登录"
        },
    },
    {
        path: "/",
        name: "home",
        component: Home,
        meta: {
            title: "首页"
        },
    },
    {
        path: "/:pathMatch(.*)*",
        name: "error",
        component: Error,
        meta: {
            title: "错误"
        },
    },
];